package com.learn.sb.sblearnshardingjdbc.db;

import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;


@Component
public class DataSourceShow implements ApplicationContextAware {

	ApplicationContext applicationContext;

	@Override
	public void setApplicationContext(ApplicationContext applicationContext) {
		this.applicationContext = applicationContext;
//		DataSource dataSource = applicationContext.getBean(DataSource.class);
//		System.out.println("-------------------------------------------");
//		System.out.println(dataSource.getClass().getName());
//		System.out.println("-------------------------------------------");
	}

}
